using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Impact.Model.Service;
using StructureMap;

namespace Impact.Model.Objects
{
    public partial class ArticleCategory
    {

        /// <summary>
        /// Returns true if the category passed is a valid object that can be used
        /// </summary>
        public static bool IsValid(ArticleCategory category)
        {
            return category != null && category.CategoryId > 0;
        }

        /// <summary>
        /// provides a user-friendly description of this object
        /// </summary>
        public override string ToString()
        {
            return this.Name;
        }


    }
}
